package com.haoze.nurse.utils;

public class MinioUtils {
    public static String getPath(String userId) {
        return userId.charAt(0) + "/" + userId.charAt(1) + "/" + userId.charAt(2) + "/" + userId;
    }

    /**
     * 获取后缀
     * @param fileName
     * @return
     */
    public static String getSuffix(String fileName){
        return fileName.substring(fileName.lastIndexOf("."));
    }
}
